package com.neuedu.boot.mybatis.po;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 挂号级别
 * @TableName regist_level
 */
public class RegistLevel implements Serializable {
    /**
     * 级别ID
     */
    private Long levelId;

    /**
     * 级别名称
     */
    private String caption;

    /**
     * 费用
     */
    private BigDecimal fee;

    /**
     * 是否删除0 删除1，正常的
     */
    private String del;

    /**
     * 数据创建时间
     */
    private Date createtime;

    private static final long serialVersionUID = 1L;

    /**
     * 级别ID
     */
    public Long getLevelId() {
        return levelId;
    }

    /**
     * 级别ID
     */
    public void setLevelId(Long levelId) {
        this.levelId = levelId;
    }

    /**
     * 级别名称
     */
    public String getCaption() {
        return caption;
    }

    /**
     * 级别名称
     */
    public void setCaption(String caption) {
        this.caption = caption;
    }

    /**
     * 费用
     */
    public BigDecimal getFee() {
        return fee;
    }

    /**
     * 费用
     */
    public void setFee(BigDecimal fee) {
        this.fee = fee;
    }

    /**
     * 是否删除0 删除1，正常的
     */
    public String getDel() {
        return del;
    }

    /**
     * 是否删除0 删除1，正常的
     */
    public void setDel(String del) {
        this.del = del;
    }

    /**
     * 数据创建时间
     */
    public Date getCreatetime() {
        return createtime;
    }

    /**
     * 数据创建时间
     */
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RegistLevel other = (RegistLevel) that;
        return (this.getLevelId() == null ? other.getLevelId() == null : this.getLevelId().equals(other.getLevelId()))
            && (this.getCaption() == null ? other.getCaption() == null : this.getCaption().equals(other.getCaption()))
            && (this.getFee() == null ? other.getFee() == null : this.getFee().equals(other.getFee()))
            && (this.getDel() == null ? other.getDel() == null : this.getDel().equals(other.getDel()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLevelId() == null) ? 0 : getLevelId().hashCode());
        result = prime * result + ((getCaption() == null) ? 0 : getCaption().hashCode());
        result = prime * result + ((getFee() == null) ? 0 : getFee().hashCode());
        result = prime * result + ((getDel() == null) ? 0 : getDel().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", levelId=").append(levelId);
        sb.append(", caption=").append(caption);
        sb.append(", fee=").append(fee);
        sb.append(", del=").append(del);
        sb.append(", createtime=").append(createtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}